finish dxmain, not debug