added setenv for windows