added some work on actually doing analysis