added session compatability