CASC-179

added parameter to determine whether to create sessions.  Also, now properly does a return.