update to use curses