add history and completion