changed if/else to cmp/match, tried to fix .travis.yml