made 'app' global