added steps for generating keys