added methods to task api