replace insert task with add_spec task