setup with d3 & pem key