more work on sessions