enable DMS and SHAPE run together from MATLAB call