expose.json generation and command line