renaming code
improve renaming code + add meta restore script