in multiplayer, serialize the cmdPending list instead of each command separately