 static ESP8266WiFiMulti WiFiMulti;
 #endif
 static char cfg_buf[NEURITE_CFG_SIZE];
-StaticJsonBuffer<NEURITE_CFG_SIZE> json_buf;
 
 const char STR_READY[] PROGMEM = "neurite ready";
 


static bool cfg_save_sync(struct neurite_data_s *nd)
{
	JsonObject& json = json_buf.createObject();

	cfg_run_dump(nd);


static int cfg_load_sync(struct neurite_data_s *nd)
{
	StaticJsonBuffer<NEURITE_CFG_SIZE> json_buf;
	log_dbg("in\n\r");
	if (!cfg_load(nd)) {
		log_err("load cfg failed\n\r");
