fix inverted logic in previous commit
move metadata claims into header