more debugging
support path.end since we need integer comparisons