added pig variable uppercasing and switch to disable that behaviour