fixes from issues
xml generation for backup