detection and management