added starter version of filewriter