basic persistence completed. debugging statements left in for now