now displays directories properly.