added auth access function