beta delay scanner added + a crude gain estimator