moved Inherit to utils