add inherit polymorphic packaging