working on automatic resync