modified auth.c auth.h