merging of socket.io, redirect changes