split to core
use contextlib for verification_mode