better logging and error handling on package installer