forgot to declare: global $app;