add scripts, implement reapply logic"