straight pool persistence works, now to clean up the code