improved metadata parsing errors