was leaking vars onto global