add try clause to sync