finalized control scripts