patch script to avoid a full restart