add support for tasks without function