get appid programatically