udpate to fix eof bs