changes to get session key