make persisting on server work