factor out appkey.c from pod into project