#todo fix resource pool