improve logging during file creation