add task and persistence