backport assertions