added comments for network stuff