updated memory pool code
more work on new pileup