almost fixed but still an error with socket.io now.