refactored helpers into separate module