makes key_identify a utility function rather than a standalone program