refactored travis file