new genpxml.sh from sebt3 with slight modifications