#9 #14 automatic set host name using StateT