edit main script