move pgp related things out of chat client file