improve superscript parsing