convert to use an async http request