use ido for buffer switching