improved batch scripting - specially for variations