completed script ready for running