move this to the analyze tool