updated url generation in res_map generator