don't close connection in api calls