altered find_site_name to use helper select_key. Not sure if good
changed find_site_name to use match_from_hash, now it's half decent