added dcm header, added compile guards