script for stdout to file added