fix this later , only the first buffer is sent