added ncurses wrapper