remove isByteArray from connection