cleaned up a bit.  couldnt put appKey and appId in property so they are direct.