fix some bugs
more pool manager refactor WIP