taking environment from NewBrake call