xml write added + function backup added