added xdoc handling