in several cases we are not properly setting an error condition so the library is not returning a failure of the installation. fix that.