some work on sessions