add _prompt_title and _extract_title functions