added suppurt for DX, combine DX and D2, added compatibility with VM3