switch to readFileSync