[PD] dynamic patching and inlet / outlet count introspection