inheritance bugfixes