initialized filewriter