added user field to fileWriter