setting up a http interface