added pause and environ