change how inherit works a bit