implemented store and load for streams for resources