path parsing bugfix