changed back to XML from rdb, with error handling