fixing function calls for compatibility with travis-ci