remove sessionoptions from code