made API url configurable