buf fixes loadFile
Revert "buf fixes loadFile"

This reverts commit 42452ddb65f0bd402dc068e72b37d59d3ea4b846.