esc_mode added