added auth functions