add extract_title for c code