added store and load method for the streaming functionality and added static  method to create a range based on type