add appid define.