refactoring: helpers.py as a single util module