add sampling rate support