simulation of unsetenv