basic path recognition