replaces misuse of lspit with proper url parser