coveralls, refactor