move sync to header -- attempt to fix sync