code can now perform rename

the code can now finally perform a rename on a file.