injecting dependencies for legacy processing