using API url as another parameter in initializer