Add rename file and buffer.