fix path parsing