renamed #type to #resource_type, some resources specify a type field