fixed interaction with resource_type