rename resource_type key into _type