added simple tatistics api