update appid and namespace