making script work correctly when draft is resumed. Tagging some parts that