fix generate script
fix generate script

schema was used before it was defined - broken when adding .json support
fixes #2

code42day/liftie,code42day/liftie,pirxpilot/liftie,pirxpilot/liftie,pirxpilot/liftie,code42day/liftie