adds travis ci's suggested fixes and resolves #664