implement ext_mode
Merge pull request #5 from rjw57/add_ext_mode

implement ext_mode