new pool demo and some refactors