re-write files before submission
plotting predictions