returned to work with different auth libraries