application helpers rewritten