fix xml target dir / removed dead code