tried integrating check for goodThreshold, relates to #167