working to manage sessions