upgraded path parsing to accept vertical paths