fixed order of var parsing in load and run script