rename history_size, buffer_size. add histpos