fix: detect threading model to take appropriate flow in mxm