add parse url code
now working for hostnames (additional security required)
add stuff for ip address parsing