added some debug lines to the rename code