fixing session ID stuff