automate some analysis