illicit discharge detection and elimination