begin curses work