added esc_check.m