refactor pooler resource to allow multiple usage of the thread