apparently the flag is not bitwise
expose last path segment
minor