moved xml template to an xml file
cleanedup after renaming get_defaults