improved auth