add version mismatch assertion