added hooks for travis-ci