move looking up your hostname to hostname_lookup, update headers