change file path.
improve curses usage.