auto attach pub key