fixed state handling to allow multiple sessions per session file

also fixed signal1 and sigstop tests