smarter caption and title handling