matrix dir