cleanup
publish detections uses config files