refactored workers, introduced helpers for workers