wtmSaveRegistry macro