lower the ping time and add a lock on serial writes