add Host filed and correct scanf overflow