build script and test read file corrected