working on do_headers()