added startSync function