fix a ton of compiletime-errors, clean-up use, exports and inheritance