final script for general network statistics