completion fixes for resource type, related to #4