use the last element of the path