added setAppKey