inheritance related bugfixes