add persistence sync function, but haven't implement