initial file processing