trying to fix auth on dir check