added task to api