added getAverages post request