add state storage to the http class