implement ext_mode