xbap stuff and keys