simplify title fetching and fix fallback to html title