move helper functions to application namespace