add some analysis stuff