added pool-mode