fix some inheritation problems