multiple mex processing