Add message store api to setup_env