detect_roh added