adding more analyzers, refactoring logic out of controller