added another switch so no complaints on pyxml