consolidated some code regarding handling subtitles