get filename as arguement and save output as that