added optional session parm and got rid of default constructor