change script ref to local
remove login helper function