added ability to load xml with a custom block