moved methods to app helper