fix travis; close connection for per request; fix import path