remove globals from sessionoptions