work on xpd doc generation