added some handling for derivatives of provided inputs and outputs
interim