add travis ci badge
separate method as refactoring