add auth functions