add hook for worker so that plugins can integrate themselves into the worker.