using array_flip for shivanode typelist by name