changing system over to XML