add more thorough comparison of metadata