refactor algo pool manager