DMF for oil refining