rename script name & finish script