added couple of task APIs.