initial tweak for DMD render code