made PME work with a mix of 1 and more threads