dma res fix + cleanup