add basic sampling rate knob to contracts