adding switch to turn off no-undefined errors