made networkcontroller a singleton. need to update the other files that access it