make url input more flexible