Fixed the communication manager

now it does not depend on the presence of "nodes"