sync and purge