lib: corrected varname
bin: save in add_host