add check for version in metadata per review comment