optimised the reducer in the output channel by fetching the environment only once
doing the checks for inputs and outputs before the planning phase even starts