add inject inherit