small tool to analyze doc