added loop
Forgot to read host:port from the config file