move socket.io to lib