draft of generate-config.py for terser system