better handling of long resource type names