warning_gen script