fix generation scripts