cosmetics in resolve_host