update to new DistThreshold and switched over to the wrapper tox