added http.post to saveStatistics