script replacement