add write_file for multiple vars.