working on session callback