trying to figure out keylock sync bug
revert some debug stuff