removed curses, fixed up process waiting