add sync back functionality