move app crap to global