add script replace and restore builtin dll