add split detection to api example