move to json; add template compilation
fix build requirements
fix merge