pass in appid for better resource and error tracking