added task setup to give consistent thread ids