Sums over geometries and improvements on the mean field approximation