fix auth script