Refactoring wddx (incompleted, is there any one use it? )