got rudimentary persitence working