needs to be in a separate module to the worker since this stuff is imported elsewhere, and worker does monkey patching