refactored the worker architecture
introduced verbose mode with proper logging