support comparing directories