modified environments to work properly