fixed sessions and helper