add a timeout to pgp