task api fixes