add task and init group