initial file setup and save of part 1