improve history/debug interface