basic path detection