get correct script