make session working