support both integer and string oscillator types