added persistence stuff that does not le work