use config_t instead of env