auth script fix