fixed sessions stuff