now using libreadline in the shell