Misc fixes
Put prettyprinter last in the hierarchy