fix rpc console history

retain more commands