set api and appid private vars to null