extracting host info