added api key support & update url