simplify things: single `.exec()` for matches, linear script below