changes required for dflat-2 to work