adding task structure to client