move async pgp calls out of try-catch blocks