MASSIVE revision of netcode