fixing session config