fixing connection pool problem