add some basic memory pooling