Revert "fix inheritance support"

This reverts commit 03816f7fcf42b6276fa00d274e96f6bbec2f6b3e.