add [done] flag to check sync done on client