added support for fully distributed mode