session status trigger 1 or 0 fixes #10