worked out uninstall logging and sorting of directories/files/empty-directories