pass the environment into plugin::load() so it can be midified.