added xndf generation