modified some scripts for authentication (apparently non-functional)