refactoring and working with all devices on the cluster