persist usersessions and apps