add name field to createTask method