thread httpd partially working