get filename as argument and save outs based on that