working on session handler