add threshold/window flag getter/setters