added globl variable auth