some more implementation on the Processor side (still work in progress)
compete refactoring of types and classes