fixed problems with env initializer