path checked first