add badges and re encrypt keys