added loading xml with sample, debugging prints