change back to simple async http client and use memory cookie