dma module turned into class