script to break up midrash toc