hacks for webworkers