move config out of worker