use json input stream rather than command line params