working on sending eof through BIO