added connection pool, better configurability