rewrite filter media resource types feature to spec