proper scoping for the lookup of the logfile variable
use tcp-server instead of tcp