pem relative to ~