implement various functions in the httpd