figure out where readPassedVars breaks