getting session to work