start script
jsonify state output, tests