remove deprecated has_key