Visibility fixes.
Better errors on unrecognized file types.