rename Inputs to InputPorts and Outputs to OutputPorts