repeated code less, check both display name and bundle name