added basic path normalisation to the router