add cwd to the output; add losing_session.c