wait for sync on load