assets compiler controller modified to  use @environment.