fix extractors and move RegExp out of runtime