fix for auth check