add some DM and SOC code