modify the dmem_init and dmem_dump structure