fixing url parsing