using scaffold to set up task object