added maxthrd, debugging dcoord < eps