make oversampling threshold settable from options