read until we have extradata