support inline definition of task handler code