define session before the autorun