if app.nil then raise error instead of warning