bugfix: use app.task to define tasks