assign unique identifier to worker if name is not specified when initialised