add posibility to specify several host/port pairs and reading from file