generify the scripts