updated to syncOnLoaded