fixed calls to urlsplit