fixes to sr_text preprocessing