refactored application to have helper set passed as dependency