move post collect handler to Libertree.Pools
make addPost function private