C version before taking state sync bet