moved rtdm code here
added above average extractor