complete script revision