reconfigure code for environments rather then indiv. plants.