changed network requests to be asynchronous