fix the way to find titles/headers
new TODO