switched the code to use libhttpd