@app scoping issue