scripts to files