refactoring: added general eventsource
almost all unit specs green again
moved named function definition to namedFunctionInstrumentor
intermediate commit
intermediate commit