error handling and fixing travis