add threshold, work on calculators
fix iport, fix baseclass