improve s:get_url()