added support for shared workers