added readline to allow console to work