re-wrote networking WORKS