hcsmp common code