sets everything back how it was, just passes the host into the url for call