implement rename dir/file