use array for buffer, send instructions in separate commands