added key creation helper