added check for whether workerId exists in url