small changes to setenv