url parsing done using urlparse