added way to handle usersessions