this should be in `getFileSchema`