make the script do all the work