updated so stdout and stderr files are not written to /tmp