handle module.state