new filewriter for different format