migrate resource into Worker.
Working on reconnected worker.