add appid to file