added file read and send buffer