threading analysis switchable and contours simplified