start of a generator for canstore