metadata sanity check