trying to make persistence layer work