use firstword to extract first path