add support for directory rename