cannot set history buffer length to less than 2