use the pooling api
Merge pull request #561 from justinstoller/maint/master/pooling

use the pooling api