add PathHelper with methods for slash handling, and use them everywhere
add and use in-place slash handling