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