script writing to temp files, styling