gen script modified