init statistics plugin