added cli tool to extract stats