copying schema prior to calling gen17: important to avoid corruption of schemata
remove development scaffolding
fix syntax (add missing right param)
remove debug scaffolding checks