call_api and other methods that depend on it now can be called with specific server url/user/pw