add context checker utility