setting api url as an option