trying to work out the dma error cases