cleaned up old auth management