removed getkey, since it was basically useless