new and old analyzer together

old one in util.py