script to check synchronization