added writing env to /tmp/cat-environment