Well, how about not puting an option like -wnd as a standard in the optionfield and like I said make sure that both the optionfields has the same content, now that could prevent a lot of confusing.
I like to keep scripting simple, life is hard enough as it is. Regards, Frits