Fix a few things.

1. Set debug for MPL (new feature)
2. just parse on ‘.ism’, makes variants more likely to work.
3. better onError.