implemented auth and other network requests.