global vars don't werk oh nooo