fix 'ls' crashing bug and add readline to irview imports