trying to fix a npe in worker setup