added blocking method (synchronous using readFileSync)