update variables, update worker