pickling in core.py of thresholds
correct mutliple thresholds bug