fix double assignment of $host
use tee -a