add the capability for index-pack to read from a stream