fixing session dumping