modified detection-interface.l