script gen file