manage to use the connection pool. fixed #22