add fetch_by_code func to used by google