[PD-dev] converting OSCx to a template library