utils: rewriting match_stars, ref #93