first version of send and read byte_array