added connection pool logic for async connections