adds main script