improve sharing of key