starts refactoring of worker thread