added basic curses code