use mexinterface for functions that use mexErrMsgTxt