slight modification of retrieving host header