implement basic webserver functionality