use read_bytes