simplify polymorphic resource