support autogenerating single inlined configdemo (for github hosting) + various bugfixes