added easy method to override the application environment.