fixed readFile to readFileSync