extracting path and fragment