implement horrible hack of a DMA transfer