added appkeys, bye keys