fix json format
properly wire up for cli
better bool support, better defaults