prototype for worker middleware/plugins; worker-lock plugin