moving stuff to analyzer.py