added configurable api url