added external_name option