last reference token of "/foo" is foo
last reference token of "/foo/0" is 0