make $app global