add log4j and change client to connect multi host