improved convertToArray method
update Url class