switching up the way auth modules are constructed