added functionality to modify scripts