added store and load method for the streaming functionality