updated app.lua