correct readFileSync to readFile