separated muinv and epspml loops, trying to get rid of both of them