add polymorphic id support if requested