fixed auth.table and added some mutexes