change the pool name to factory
add some comments