Mods for dm rep - no globals ...