untested code for subtitle support