UPDATED: network class. adding network stats to help with debug