added api url option