small hacks in dma driver