handle auth errors and fix specs