added saveControl, updated featureDetection