modified auth and config