improve output on exception
save readline history between sessions