commit before socket.io related reconstructing