works with real dirs