add task resouce factory