fix: properly handle response for add/remove/set task function operaions