added support for multiple agents on one node