breaking out the http interface