added appId

to be compliant with the latest protocol, everything needs to have an
appId.