Updated replace_hosts definition
Some failed try