add task methods and read locks