add SELECT_MODE_DICT option, close #8