worker dependency refactoring