continued work on XDI/JSON serialization