moved the logging component to main.py
refactored both component feature components