change internal-file read to synchronous