implemented console history