added fs.appendFile support