take putenv out of packagemanager