add set raw mode and reset method