fixed url grabbing