some update on master controller for setting up socket.io