XDI2 general purpose library