super fancy improvements to the regex engine