update api url and more