added mapUrl method