tested - need to check key install logic