improving configuration for agents since they failed to start without port definition being explicit