First pass at persistance in a somewhat resuable manner. kind of. maybe. maybe not.