script main