Hack dfmem to mostly work