work on sessions handler