refactor automatic code generation:
 - put schema files in own files
 - do not generate source file online but using a preprocessor command