added some methods to task and Obj.