toyed with saving to xml bit