extracted store to a module.