trying to distinguish between directories