debug - pass $app, cause I need it...