#103 make lifecycle of store configurable