modify some script files