added sync_osc to be able to set different oscillator frequenncies