generate check scripts