added a memory pool, neither used nor tested
minor changes
save