check metadata && metadata.published