exit status and env variables