refined for travis-ci