refactored to break out cross-worker coorindation code