add api and setup task list