minor changes to make auth functions work